package com.example.sprintbootarithmetic.DataStructure.doubleLinkedlist;

public class HeroNode {
    public int id;
    public String name;
    public String nickname;
    public HeroNode next;
    public HeroNode prev;

    @Override
    public String toString() {
        return "HeroNode{" + "id=" + id + ", name='" + name + ", nickname=" + nickname + ", next=" + next;
    }

    public HeroNode(int id, String name, String nickname) {
        this.id = id;
        this.name = name;
        this.nickname = nickname;
    }

    public int getId() {
        return id;
    }

    public HeroNode getNext() {
        return next;
    }

    public void setNext(HeroNode next) {
        this.next = next;
    }

    public HeroNode getPrev() {
        return prev;
    }

    public void setPrev(HeroNode prev) {
        this.prev = prev;
    }

    public void setId(int id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

}
